package com.huang.gateway.properties;

import com.huang.gateway.entity.IgnoringPath;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @author HuangShen
 * @Description 读取配置properties
 * @create 2021-09-21 10:57
 */
@Component
@Data
@ConfigurationProperties(prefix = "com.huang.gateway")
@RefreshScope
public class MyGateWayProperties {

    //网关放行的路径
    private List<IgnoringPath> ignoringPaths =new ArrayList<>();


}
